source 'https://gems.ruby-china.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.5'
# Use postgres as the database for Active Record
gem 'pg'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Add Rank
gem 'ranked-model'

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc

# use slim instead of erb
gem 'slim-rails'

# user .env
gem 'dotenv-rails', require: 'dotenv/rails-now'

# use bootstrap
gem 'bootstrap-sass'
gem "autoprefixer-rails"

# paginator
gem 'kaminari'

# carrierwave for image upload
gem 'carrierwave', github: 'carrierwaveuploader/carrierwave'
gem 'mini_magick'

# enumerize
gem 'enumerize'

# pass variable to js
gem 'gon'
gem 'browser'

# oauth from gpk_main
gem 'omniauth-geekpark', '~> 1.0'
gem 'rack-oauth2'

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# wechat
gem 'weixin_authorize'
gem 'redis-namespace'

# Use Unicorn as the app server
gem 'unicorn'

# send mail when exception
gem 'exception_notification'

gem 'jquery-ui-rails'

gem 'grape'
gem 'grape-swagger'
gem 'grape-swagger-rails'
gem 'grape-jbuilder'

gem 'rack-cors', :require => 'rack/cors'

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  # use pry-byebug instead of byebug
  gem 'pry-byebug'

  # Access an IRB console on exception pages or by using <%= console %> in views
  gem 'web-console', '~> 2.0'

  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'

  # Test with Rspec and FactoryGirl
  gem 'rspec-rails'
  gem 'factory_girl_rails'
  gem 'database_cleaner'

  # Auto Test with Guard
  gem 'guard-rspec', require: false
  gem 'guard-livereload', '~> 2.4', require: false
  gem 'terminal-notifier-guard'
end

group :development do
  gem 'capistrano', '~> 3.4.0', require: false
  gem 'capistrano-rails', require: false
  gem 'capistrano-rbenv', require: false
  gem 'capistrano3-unicorn', require: false
  gem 'capistrano-db-tasks', require: false
  # gem 'capistrano-sidekiq', require: false

  gem 'letter_opener'
end
